home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_gen
/
wdj0796.zip
/
RAJA.ZIP
/
GENERVW.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-08
|
2KB
|
73 lines
// genervw.cpp : implementation of the CGenericView class
//
#include "stdafx.h"
#include "generic.h"
#include "generdoc.h"
#include "genervw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGenericView
IMPLEMENT_DYNCREATE(CGenericView, CView)
BEGIN_MESSAGE_MAP(CGenericView, CView)
//{{AFX_MSG_MAP(CGenericView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGenericView construction/destruction
CGenericView::CGenericView()
{
// TODO: add construction code here
}
CGenericView::~CGenericView()
{
}
/////////////////////////////////////////////////////////////////////////////
// CGenericView drawing
void CGenericView::OnDraw(CDC* pDC)
{
CGenericDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CGenericView diagnostics
#ifdef _DEBUG
void CGenericView::AssertValid() const
{
CView::AssertValid();
}
void CGenericView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CGenericDoc* CGenericView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CGenericDoc)));
return (CGenericDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CGenericView message handlers